Skip to content

Fix TrendCheck creating Quality without a name#2584

Merged
knopers8 merged 1 commit intoAliceO2Group:masterfrom
knopers8:fix-trend-check
Jul 31, 2025
Merged

Fix TrendCheck creating Quality without a name#2584
knopers8 merged 1 commit intoAliceO2Group:masterfrom
knopers8:fix-trend-check

Conversation

@knopers8
Copy link
Collaborator

A default Quality would be created when TrendCheck::beautify was trying to access a non-existent entry in mQualities map. When using operator[] with a missing key, the object is added using the default constructor, so Quality(10, "") was being created. This was causing crashes in QualityTask, which was relying on a non-empty Quality name to be there.

A default Quality would be created when TrendCheck::beautify was trying to access a non-existent entry in mQualities map.
When using operator[] with a missing key, the object is added using the default constructor, so Quality(10, "") was being created.
This was causing crashes in QualityTask, which was relying on a non-empty Quality name to be there.
@knopers8
Copy link
Collaborator Author

@aferrero2707 FYI

@knopers8 knopers8 merged commit 9d7f6ec into AliceO2Group:master Jul 31, 2025
6 checks passed
@knopers8 knopers8 deleted the fix-trend-check branch July 31, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants